// 所属板块
import { defineComponent, ref } from "vue";
import { dxget } from "../../util/index";
export default defineComponent({
  props: {
    code: {
      type: String,
    },
  },
  setup(props) {
    let tableData = ref([]);
    const initData = async () => {
      let kjjhe: any = await dxget("dc/GetTheOwningplate", {
        code: props.code,
      });
      tableData.value = kjjhe.data;
    };
    initData();
    return () => (
      <>
        <n-card title="所属板块">
          {tableData.value.map((a) => {
            return <n-button class="jnnsewer">{a.BOARD_NAME}</n-button>;
          })}
        </n-card>
      </>
    );
  },
});
